package com.face.client.model;

public class Similarity implements Comparable<Similarity> {

    private float similar;

    private int index;

    public Similarity(float similar, int index) {
        this.similar = similar;
        this.index = index;
    }

    public float getSimilar() {
        return similar;
    }

    public void setSimilar(float similar) {
        this.similar = similar;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    @Override
    public int compareTo(Similarity o) {
        return Float.compare(similar, o.similar);
    }
}
